<div class="color myStyle1">

	<section class="allColor">
		<h4>已定义的颜色：</h4>
		<span class="label label-default" ng-repeat="color in top_Color" title="描述：{{color.description}}">{{color.name}}</span>
	</section>

	<section class="addColor" ng-controller="addColor">
		<h4>添加一种颜色：</h4>
		<form class="form-inline">
			<div class="form-group">
				<label for="colorName">颜色</label>
				<input type="text" class="form-control" id="colorName" placeholder="黑色" ng-model=colorName>
			</div>
			<div class="form-group">
				<label for="colorDescription">描述</label>
				<input type="text" class="form-control" id="colorDescription" ng-model="colorDescription">
			</div>
			<button class="btn btn-default" ng-click="addColor(); refresh_Color();">添 加</button>
		</form>
	</section>

	<section class="deleteColor" ng-controller="deleteColor">
		<h4>删除一种颜色：</h4>
		<form class="form-inline">
			<div class="form-group">
				<label>颜色</label>
				<select class="form-control" ng-model="colorId" ng-options="color.colorId as color.name for color in top_Color">
					<option value="">--请选择--</option>
				</select>
			</div>
			<button class="btn btn-default" ng-click="deleteColor(); refresh_Color();">删 除</button>
		</form>
	</section>

	<section class="modifyColor" ng-controller="modifyColor">
		<h4>修改一种颜色：</h4>
		<form class="form-inline">
			<div class="form-group">
				<label>颜色</label>
				<select class="form-control" ng-model="colorId" ng-options="color.colorId as color.name for color in top_Color">
					<option value="">--请选择--</option>
				</select>
			</div>
			<div class="form-group">
				<label for="colorName2">颜色</label>
				<input type="text" class="form-control" id="colorName2" placeholder="黑色" ng-model=colorName>
			</div>
			<div class="form-group">
				<label for="colorDescription2">描述</label>
				<input type="text" class="form-control" id="colorDescription2" ng-model="colorDescription">
			</div>
			<button class="btn btn-default" ng-click="modifyColor(); refresh_Color();">修 改</button>
		</form>
	</section>	

</div>
